using Net35.Xrm.Sdk;
using System;
using System.Runtime.Serialization;
namespace Net35.Crm.Sdk.Messages
{
	[DataContract(Namespace = "http://schemas.microsoft.com/crm/2011/Contracts")]
	public sealed class CancelSalesOrderRequest : OrganizationRequest
	{
		public Entity OrderClose
		{
			get
			{
				if (base.Parameters.Contains("OrderClose"))
				{
					return (Entity)base.Parameters["OrderClose"];
				}
				return null;
			}
			set
			{
				base.Parameters["OrderClose"] = value;
			}
		}
		public OptionSetValue Status
		{
			get
			{
				if (base.Parameters.Contains("Status"))
				{
					return (OptionSetValue)base.Parameters["Status"];
				}
				return null;
			}
			set
			{
				base.Parameters["Status"] = value;
			}
		}
		public CancelSalesOrderRequest()
		{
			base.RequestName = "CancelSalesOrder";
			this.OrderClose = null;
			this.Status = null;
		}
	}
}
